<!--Copyright (C) Kherty.  All rights reserved.-->
<ResourceDictionary
    x:Class="OpenLS.Drawing.UI.GradientResources"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:drawing="http://schemas.Kherty.com/office/2007/drawing"
    xmlns:Internals="clr-namespace:OpenLS.Drawing.UI.Internals"
    xmlns:UI="clr-namespace:OpenLS.UI;assembly=OpenLS.UI">
    <DataTemplate DataType="{x:Type drawing:GradientStop}">
        <StackPanel>
            <StackPanel Orientation="Horizontal">
                <Label Content="{x:Static Internals:UIStringTable.StopPosition_}"></Label>
                <Slider Width="60" Minimum="0" Maximum="1" Value="{Binding Position}"></Slider>
                <UI:NumericUpDown Width="60" Value="{Binding Position}" Format="{}{0:#0.##%}" />
            </StackPanel>
            <StackPanel Orientation="Horizontal">
                <Label Content="{x:Static Internals:UIStringTable.Color_}"></Label>
            </StackPanel>
            <StackPanel></StackPanel>
        </StackPanel>
    </DataTemplate>
    <DataTemplate DataType="{x:Type drawing:GradientFillProperties}">
        <StackPanel>
            <Grid >
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition></ColumnDefinition>
                    <ColumnDefinition></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <Button Content="{x:Static Internals:UIStringTable.Add}" Click="OnAdd"></Button>
                <Button Grid.Column="1" Content="{x:Static Internals:UIStringTable.Remove}" Click="OnRemove" Tag="{Binding ElementName=lb}"></Button>
                <ListBox ItemsSource="{Binding GradientStops}" Name="lb" MaxHeight="200"
                         Grid.ColumnSpan="2" Grid.Row="1">

                </ListBox>
            </Grid>
        </StackPanel>
    </DataTemplate>
</ResourceDictionary>